package com.supreme.studyserver.entity;

import lombok.Data;

import java.util.function.Supplier;

@Data
public class FXPack<T> {

    private T data;

    public FXPack() {
    }

    public FXPack(T data) {
        this.data = data;
    }

    public FXPack(Supplier<T> supplier) {
        this.data = supplier.get();
    }

    public <TT> TT showGenerics(Supplier<TT> data) {
        return data.get();
    }
}
